<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
    <ui:composition template="template.xhtml">        
        <ui:define name="content">
            <h:form>
<!--                <h:commandButton id="cb1" value="list new problems" action="#{listProblemsController.listNewProblems()}"/>
                <h:commandButton id="cb2" value="list in work problems" action="#{listProblemsController.listInWorkProblems()}"/>
                <h:commandButton id="cb3" value="list transfer problems" action="#{listProblemsController.listTransferProblems()}"/>
                <h:commandButton id="cb4" value="list solved problems" action="#{listProblemsController.listSolvedProblems()}"/>
                <h:commandButton id="cb5" value="list all problems" action="#{listProblemsController.listAllProblems()}"/>-->
                <!--     <f:ajax render="table1"/>-->

                <table id="table1" style="border: 1pt">
                    <tr><td>Product title:</td>
                    </tr>
                    <ui:repeat var="p" value="#{listProductsController.products}" varStatus="status">
                        <tr>
                            <td>#{p.title}</td>
                        </tr>
                    </ui:repeat>
                </table>   
            </h:form>
        </ui:define>
    </ui:composition>
</html>


